package com.qianfeng.wuyang.himalaya.bean.broadcastbean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by wuyang on 2016/12/5.
 */

public class BC_dataEntity implements Parcelable {
    private List<BC_categoriesEntity> categories;
    private List<BC_localRadiosEntity> localRadios;
    private String location;
    private List<BC_topRadiosEntity> topRadios;

    protected BC_dataEntity(Parcel in) {
        location = in.readString();
        topRadios = in.createTypedArrayList(BC_topRadiosEntity.CREATOR);
    }

    public static final Creator<BC_dataEntity> CREATOR = new Creator<BC_dataEntity>() {
        @Override
        public BC_dataEntity createFromParcel(Parcel in) {
            return new BC_dataEntity(in);
        }

        @Override
        public BC_dataEntity[] newArray(int size) {
            return new BC_dataEntity[size];
        }
    };

    public List<BC_categoriesEntity> getCategories() {
        return categories;
    }

    public void setCategories(List<BC_categoriesEntity> categories) {
        this.categories = categories;
    }

    public List<BC_localRadiosEntity> getLocalRadios() {
        return localRadios;
    }

    public void setLocalRadios(List<BC_localRadiosEntity> localRadios) {
        this.localRadios = localRadios;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public List<BC_topRadiosEntity> getTopRadios() {
        return topRadios;
    }

    public void setTopRadios(List<BC_topRadiosEntity> topRadios) {
        this.topRadios = topRadios;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(location);
        parcel.writeTypedList(topRadios);
    }
}
